export default {
  name: "BaseManager",
  props: {
    labelWidth: {
      type: String,
      default: "120px",
    },
    value: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {
      device: {},
    };
  },
  created() {
    this.setValue(this.value);
  },
  watch: {
    value(nv) {
      this.setValue(nv);
    },
  },
  methods: {
    setValue(value) {
      this.device = Object.assign({}, value);
    },
  },
};
